package com.ethink.framework.common.validate.annotation;

import com.ethink.framework.common.validate.impl.IsMobileNoValidatorImpl;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 手机号格式是否正确
 *
 * @author name(mobile)
 */

@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = IsMobileNoValidatorImpl.class)
public @interface IsMobileNo {

    String message() default "手机号格式非法";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}